package com.JedisTest;

import com.bdqn.kind.JedisAPI;
import org.junit.After;
import org.junit.Test;

import static org.junit.Assert.*;

public class JedisTest {
    private JedisAPI jedisAPI;

    @org.junit.Before
    public void startUp() throws Exception{
        jedisAPI = new JedisAPI();
    }
    @After
    public void tearDown() throws Exception{
        if (jedisAPI != null){
            jedisAPI.destroy();
        }

    }

    @Test
    public void test(){
        assertNull(jedisAPI.get("haha"));
    }


}
